﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.IO;

namespace WebMVC.Helpers
{
    public class FileStoreHelper
    {
        public static string GetTaxiSmallLogo(int id, HttpServerUtilityBase server)
        {
            var path =  "/img/taxi/logo/" + id + ".png";
            var physPath = server.MapPath(path);
            if (File.Exists(physPath))
            {
                return path;
            }
            else
            {
                return "/img/design/no-logo.png";
            }
        }

        public static string GetCarSmallLogo(string make)
        {
            return "/img/logos/" + make + ".png";
        }
    }
}